package com.opennews.openplatform.familyexpenseapi.dto.account.group

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.opennews.openplatform.myspringbootcore.dto.IdentityDto
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@JsonIgnoreProperties(ignoreUnknown = true)
class AccountGroupDto : IdentityDto() {
    @field:NotBlank(message = "title can't be blank")
    @field:Size(max = 50, message = "title must be at most 50 characters")
    lateinit var title: String
}